﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using MessageService;
using SsoaFramework.Service;

namespace MessageServiceNamespace
{
    class Program
    {
        public static LogService logService = new LogService("MessageService");
        static void Main(string[] args)
        {
            using (StandardizedServiceHost host = new StandardizedServiceHost(typeof(MessageServiceFoo), new Uri("http://localhost:7322/")))
            {
                host.AddServiceEndpoint(typeof (IMessageService), new WSHttpBinding(), String.Empty);
                host.Open();
                Console.WriteLine("MessageService started!");
                logService.Info("Service started");
                Console.ReadKey();
            }
            logService.Info("Service stopped!");
        }
    }
}
